﻿Imports System.ComponentModel.DataAnnotations

Public Class Veiculo
    Public Property Id As Integer
    Public Property Marca As String
    Public Property Modelo As String
    Public Property cilindrada As String
    Public Property valorVenda As String
    Public Property potencia As String
    Public Property numPortas As Integer
    Public Property descricao As String
    Public Property stock As Integer
    Public Overrides Function ToString() As String
        Return "Veiculo ID:" & Me.Id & ", Marca:" & Marca & ", Modelo:" & Modelo & ", Cilindrada:" & cilindrada _
            & "Valor de Venda:" & valorVenda & ", Potencia:" & potencia & ", NºPortas:" & numPortas
    End Function

End Class
